	
						<div class="column" style="width:25%;" onmouseover="Hovercat('<?php echo $cate->id;?>')" onmouseout="Outcat('<?php echo $cate->id;?>')">
			            	<a href="javascript:;" class="art cate_name_<?php echo $cate->id;?>"><?php echo $cate->name;?></a><br />
			                <div class="action" id="neocat-<?php echo $cate->id;?>">
			                    <img src="<?php echo base_url();?>public/admin/img/edit.gif" /><a href="javascript:void(0)" onclick="open_form('<?php echo admin_url(); ?>/edit-category/<?php echo $cate->id;?>')"><?php echo $this->lang->line('edit'); ?></a>|<img src="<?php echo base_url();?>public/admin/img/delete.gif" /><a href="<?php echo admin_url();?>/delete-category/<?php echo $cate->id;?>" onclick="return confirm('<?php echo $this->lang->line('delete_conf'); ?>');"><font color="#be0000"><?php echo $this->lang->line('delete'); ?></font></a>
			                </div>
			            </div>
			            <div class="column" style="width:30%;"><span style="color: green;"><?php echo $cate->url;?></span></div>
			            <div class="column" style="width:15%;"><span style="color: grey; font-weight: bold;"><?php if($cate->parent_id == 0){echo " _ _ ";}else {$parent = $this->category_model->get_match_parent($cate->parent_id); echo $parent['name'];}?></span></div>
			            <div class="column" style="width:15%;">
			            	<input type="text" name="order" id="<?php echo $cate->id;?>" class="order" value="<?php echo $cate->order;?>" maxlength="2" style="width:45px; float:left;" />
			            </div>
			            <div class="column" style="width:5%;">
			            <?php if($cate->status == 'yes'){?>
			            	<a href="javascript:void(0);" onclick="category_status('<?php echo $cate->id;?>', 'no', '<?php echo $this->lang->line('status_mess'); ?>')"><img src="<?php echo base_url();?>public/admin/img/active.png" title="<?php echo $this->lang->line('active'); ?>" alt="Yes" class="icon png" /></a>
			            <?php }else{?>	
			            	<a href="javascript:void(0);" onclick="category_status('<?php echo $cate->id;?>', 'yes', '<?php echo $this->lang->line('status_mess'); ?>')"><img src="<?php echo base_url();?>public/admin/img/pending.png" title="<?php echo $this->lang->line('suspend'); ?>" alt="No" class="icon png" /></a>
			            <?php }?>
			            </div>
			            <div id="hidd" style="display: none;"><a href="#" class="admin_status"></a></div>
			            
<script type="text/javascript">
    
    $(function(){
        $('.order').keydown(function(event){
            if ( event.keyCode == 46 || event.keyCode == 8 ) {
                // let it happen, don't do anything
            }else{
                // Ensure that it is a number and stop the keypress
                if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode < 96 || event.keyCode > 105 )) {
                    event.preventDefault(); 
                }   
            }
            
            if(event.keyCode == 13) { // Enter pressed
                var cate_order = $(this).val();
                var cate_id = $(this).attr('id');
                $('input[name="category_id"]').val(cate_id);
                $('input[name="category_order"]').val(cate_order);
                $('#change_order_cate').submit();
            }
        });
    });
</script>

<?php
    echo form_open(admin_url('category/change-order'), array('id' => 'change_order_cate'), array('category_id' => 0, 'category_order' => 0));
    echo form_close();
?>